import Vue from 'vue'
import App from './App'

// 本项目用的是uview2.0框架
import uView from '@/uni_modules/uview-ui';
Vue.use(uView);
uni.$u.setConfig({
	config: {
		unit: 'rpx'
	},
	props: {
		radio: {
			size: 40
		}
	}
})

import MescrollBody from "@/components/mescroll-uni/mescroll-body.vue"
import MescrollUni from "@/components/mescroll-uni/mescroll-uni.vue"
Vue.component('mescroll-body', MescrollBody)
Vue.component('mescroll-uni', MescrollUni)

import $api from "./common/thcommon.js";
Vue.prototype.$api = $api;

import config from './common/config.js'
Vue.prototype.$config = config;

import http from './common/request.js'
Vue.prototype.$http = http;

import store from './store'
Vue.prototype.$store = store;

Vue.config.productionTip = false
App.mpType = 'app'

const app = new Vue({
	store,
    ...App
})
app.$mount()
